package com.da.javalog.validator;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author chenlida
 * @date 2020/9/13 22:17
 * @description
 */
@Slf4j
@Component
public class ValidatorB implements Validator {
    @Override
    public void doValidator(ValidatorContext context) {
        if (!"joker".equals(context.getName())) {
            context.setMsg(context.getMsg() + "not joker;");
        }
    }
}
